package com.orange.wwwapi.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Var;
import com.orange.wwwapi.pojo.req.carpark.keytop.GetParkingPaymentInfoReq;
import com.orange.wwwapi.pojo.req.carpark.keytop.PayParkingFeeReq;
import com.orange.wwwapi.pojo.rsp.carpark.keytop.KeyTopBaseRsp;

@BaseRequest(headers = {"version: 1.0.0", "accept-language: zh-CN"})
public interface KeyTopCarParkClient {

    /**
     * 账单查询/费用查询
     */
    @Post("${baseUrl}/api/wec/GetParkingPaymentInfo")
    KeyTopBaseRsp<String> getParkingPaymentInfo(@Var("baseUrl") String baseUrl, @JSONBody GetParkingPaymentInfoReq req);

    /**
     * 停车费支付
     */
    @Post(value = "${baseUrl}/api/wec/PayParkingFee", readTimeout = 10000)
    KeyTopBaseRsp<String> payParkingFee(@Var("baseUrl") String baseUrl, @JSONBody PayParkingFeeReq req);
}
